/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.ocp.loanrequesthandler;

import za.ac.cput.assignment2.ocp.ValidatorInterface;

/**
 *
 * @author yandiswa
 */
public class LoanRequestHandler {
    
    private double balance;
    private double period;
    public LoanRequestHandler(double bal,double per)
    {
        balance = bal;
        period = per;
    }
    public void loanAproved(ValidatorInterface valid)
    {
        if(valid.isValid(balance))
            System.out.println("you loan have been aproved");
        else 
            System.out.println("you loan have  not been aproved");
    }
    }

